package cn.com.customer.manager.bean


import com.google.gson.annotations.SerializedName

/**
 *
 * @ProjectName:
 * @Package:
 * @ClassName:     OrderInfo
 * @Description:     订单实体类
 * @Author:         wjy
 * @CreateDate:     2020/6/16 9:16
 * @UpdateUser:     wjy
 * @UpdateDate:     2020/6/16 9:16
 * @UpdateRemark:   更新说明：
 * @Version:        1.0
 */
data class OrderInfo(val orderId: String, val orderName: String, val orderSerialNumber: String, val orderStatus: String, val orderPayWay: String,
                     val oBankInfo: BankInfo?, val customerName: String, val orderTotalAmount: String, val orderDate: String, val remark: String, val attachments: List<OrderAttachments>) {
}

data class BackMoneyInfo(var receivedAmount: String, var receivedDate: String, var remark: String) {

}

data class OrderAttachments(val url: String, val remark: String)
data class GoodInfo(val goodsId: String, var goodsName: String, var goodsPrice: String, var goodsNum: String, val consigneeName: String, val consigneeAddress: String, val consigneeMobile: String, var remark: String)
data class Good2Info(val id: String, var name: String, val categoryName: String, val model: String, val profile: String)

data class BankInfo(val payBankName: String, val payBankAccountName: String, val payBankAccount: String, val payBankAddress: String, val payBankCode: Int)
data class OrderDetailInfo(
        @SerializedName("attachments")
        var attachments: List<Attachment>,
        @SerializedName("name")
        var name: String,
        @SerializedName("orderDate")
        var orderDate: String,
        @SerializedName("orderId")
        var orderId: String,
        @SerializedName("orderName")
        var orderName: String,
        @SerializedName("pay_way")
        var pay_way: String,
        @SerializedName("orderReceivedAmount")
        var orderReceivedAmount: String,
        @SerializedName("orderSerialNumber")
        var orderSerialNumber: String,
        @SerializedName("status")
        var status: String,
        @SerializedName("orderTotalAmount")
        var orderTotalAmount: String,
        @SerializedName("payBankAccount")
        var payBankAccount: String,
        @SerializedName("payBankAccountName")
        var payBankAccountName: String,
        @SerializedName("payBankAddress")
        var payBankAddress: String,
        @SerializedName("payBankCode")
        var payBankCode: String,
        @SerializedName("payBankName")
        var payBankName: String,
        @SerializedName("remark")
        var remark: String
)

data class Attachment(
        @SerializedName("remark")
        var remark: String,
        @SerializedName("url")
        var url: String
)

data class OrderListInfo(
        @SerializedName("orders")
        var orders: List<Order>
)

data class Order(
        @SerializedName("customerName")
        var customerName: String,
        @SerializedName("orderDate")
        var orderDate: String,
        @SerializedName("orderId")
        var orderId: String,
        @SerializedName("orderName")
        var orderName: String,
        @SerializedName("orderReceivedAmount")
        var orderReceivedAmount: String,
        @SerializedName("orderSerialNumber")
        var orderSerialNumber: String,
        @SerializedName("orderStatus")
        var orderStatus: String,
        @SerializedName("orderTotalAmount")
        var orderTotalAmount: String
)

data class GoodListInfo(
        @SerializedName("goods")
        var goods: List<Goods>
)

data class Good(
        @SerializedName("consigneeAddress")
        var consigneeAddress: String,
        @SerializedName("consigneeMobile")
        var consigneeMobile: String,
        @SerializedName("consigneeName")
        var consigneeName: String,
        @SerializedName("goodsId")
        var goodsId: String,
        @SerializedName("goodsName")
        var goodsName: String,
        @SerializedName("goodsNum")
        var goodsNum: String,
        @SerializedName("goodsPrice")
        var goodsPrice: String,
        @SerializedName("remark")
        var remark: String
)

data class ReceivePayListInfo(
        @SerializedName("receivedPayments")
        var receivedPayments: List<ReceivedPayment>
)

data class ReceivedPayment(
        @SerializedName("receivedAmount")
        var receivedAmount: String,
        @SerializedName("receivedDate")
        var receivedDate: String,
        @SerializedName("remark")
        var remark: String
)

data class GoodsList(
        @SerializedName("goods")
        var goods: List<Good1>
)

data class Good1(
        @SerializedName("categoryName")
        var categoryName: String,
        @SerializedName("id")
        var id: String,
        @SerializedName("model")
        var model: String,
        @SerializedName("name")
        var name: String,
        @SerializedName("profile")
        var profile: String
)

data class RequestOrder(
        @SerializedName("customerName")
        var customerName: String,
        @SerializedName("orderBeginDate")
        var orderBeginDate: String,
        @SerializedName("orderEndDate")
        var orderEndDate: String,
        @SerializedName("orderName")
        var orderName: String,
        @SerializedName("orderSerialNumber")
        var orderSerialNumber: String,
        @SerializedName("orderStatus")
        var orderStatus: String,
        @SerializedName("pageNo")
        var pageNo: String,
        @SerializedName("pageSize")
        var pageSize: String
)

data class AddOrderInfo(
        @SerializedName("orderId")
        var orderId: String,
        @SerializedName("customerId")
        var customerId: String,
        @SerializedName("goodsList")
        var goodsList: List<Goods>,
        @SerializedName("name")
        var name: String,
        @SerializedName("payBankAccount")
        var payBankAccount: String,
        @SerializedName("payBankAccountName")
        var payBankAccountName: String,
        @SerializedName("payBankAddress")
        var payBankAddress: String,
        @SerializedName("payBankCode")
        var payBankCode: String,
        @SerializedName("payBankName")
        var payBankName: String,
        @SerializedName("payWay")
        var payWay: String,
        @SerializedName("remark")
        var remark: String,
        @SerializedName("totalAmount")
        var totalAmount: String
)

data class Goods(
        @SerializedName("consigneeAddress")
        var consigneeAddress: String,
        @SerializedName("consigneeMobile")
        var consigneeMobile: String,
        @SerializedName("consigneeName")
        var consigneeName: String,
        @SerializedName("goodsId")
        var goodsId: String,
        @SerializedName("goodsName")
        var goodsName: String,
        @SerializedName("goodsNum")
        var goodsNum: String,
        @SerializedName("goodsPrice")
        var goodsPrice: String,
        @SerializedName("remark")
        var remark: String
)